﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Ait.Web.Templates.SearchPage._default" %>
<%--<%@ Register TagPrefix="uc" TagName="FeedList" Src="~/Templates/SharedFiles/FeedList.ascx" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LcolContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RcolContentPlaceHolder" runat="server">
    
    <div id="fullWidth">
        <h1><%=GetSearchTitle() %></h1>
        <ajax:Accordion ID="accordian" CssClass="expandableForm" ContentCssClass="content" HeaderCssClass="header normal" HeaderSelectedCssClass="header selected" RequireOpenedPane="false" SelectedIndex="0" runat="server">
            <Panes>
                <ajax:AccordionPane ID="accordianPane" runat="server">
                    <Header><h4>Search Term</h4></Header>
                    <Content>
                        <asp:Panel ID="pnl" DefaultButton="btnSearchTerm" runat="server">
                            <ul class="form">
                                <li>
                                    <span class="formLabel">Term:</span>
                                    <span class="formInput">
                                        <asp:TextBox ID="txtSearchTerm" runat="server" />
                                        <asp:RequiredFieldValidator id="valSearch" ControlToValidate="txtSearchTerm" Display="Dynamic" ErrorMessage="!Required" ValidationGroup="searchTerm" runat="server" />
                                        <asp:Button ID="btnSearchTerm" Text="Search" ValidationGroup="searchTerm" OnClick="btnSearchTerm_Click" runat="server" />
                                    </span>
                                </li>
                            </ul>
                        </asp:Panel>
                    </Content>
                </ajax:AccordionPane>
            </Panes>
        </ajax:Accordion>
    </div>
    
    <acms:AcmsDataList ID="dlFeed" DataSourceID="dsListItems" CssClass="feedModule" AllowPaging="true" PageSize="10" runat="server">
        <HeaderTemplate>
            <h3 style="padding-top:5px;" class="moduleTitle">Search Results</h3>
        </HeaderTemplate>
        <ItemStyle CssClass="feedItem" />
        <ItemTemplate>
            <div class="fullWidthItem clearfix" >
                    <div class="lcol">
                        <h2><acms:PostLink ID="title" runat="server" /></h2>
                        <p><acms:PostSummary ID="postSummary" runat="server" /></p>
                        <acms:PostLink ID="postLink" runat="server" Text="Learn more..." CssClass="learnMore" />
                    </div>
                    <acms:PostThumbnail ID="postThumbnail" CssClass="thumbnail" HyperLink="true" RenderWidth="195" RenderHeight="108" runat="server" />
                </div>
        </ItemTemplate>
        <FooterTemplate>
            <div style="clear:both"></div>
        </FooterTemplate>
        <BottomPagerStyle CssClass="pager" />
        <NoDataTemplate>
            <div style="padding:5px;">Sorry, your search returned no results.</div>
        </NoDataTemplate>
    </acms:AcmsDataList>
    <acms:SearchDataSource ID="dsListItems" EnablePaging="true" runat="server" />
    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FooterContentPlaceHolder" runat="server">
</asp:Content>
